package com.xgry.bpm.api.base.tableclass.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("table_class")
public class TableClass extends Model<TableClass> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tableClassId", type = IdType.AUTO)
    private Integer tableClassId;

    @TableField("tableChClassName")
    private String tableChClassName;

    @TableField("tableClassName")
    private String tableClassName;

    @TableField("subTableId")
    private Integer subTableId;

    @TableField("mTableId")
    private Integer mTableId;

    @TableField("modelId")
    private Integer modelId;

    @TableField("viewName")
    private String viewName;

    @TableField("viewSql")
    private String viewSql;

    private Integer pid;

    private String state;

    @TableField("tableChType")
    private String tableChType;

    @TableField("dbInfoId")
    private Integer dbInfoId;


    @Override
    protected Serializable pkVal() {
        return this.tableClassId;
    }

}
